let icons  = require.context('@/icons/svg',true, /\.svg$/)
const iconList = icons.keys().map(item => icons(item))

function getNameList(){
    let iconsVal = iconList;
    let list = iconsVal.map(item => item.replace('/static/img/', ''));
    let list1 = []
    list.forEach(res=>{
        list1 = res.substring(0,res.lastIndexOf("."))
    })
    // iconList = list1;
    return list1;
}

export default {
    iconList
}